package gewu.suleju.sevice.imp;

import gewu.suleju.dao.iml.IBrokerDao;
import gewu.suleju.model.pojo.BrokerInfo;
import gewu.suleju.sevice.IBrokerLogAndRegService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BrokerLogAndRegServiceImp implements IBrokerLogAndRegService {
    @Autowired
    IBrokerDao iBrokerDao;
    @Override
    public BrokerInfo findBrokerInfoByBrokerPhone(String Brokerphone) {
        return iBrokerDao.findBrokerInfoByBrokerPhone(Brokerphone);
    }
    public void SaveBrokerInfo(BrokerInfo broker) {
        iBrokerDao.save(broker);
    }
}
